﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TrainingsApp.WebModel;
using TrainingsApp.Model;
using TrainingsApp.Logic;

namespace TrainingsApp.IPADApp.Teacher {
    public partial class PreviewQuickQueryDetail : AccountPage {

        public long ChapterId {
            get;
            set;
        }
        public Guid PreviewId {
            get {

                return new Guid(ZJFramework10.Utility.QueryStringManager.GetValue<string>("pid", Guid.Empty.ToString()));
            }
        }

        protected void Page_Load(object sender, EventArgs e) {
            TS_Question_Entity entity = TS_Question_Logic.TS_Question_ViewByPreviewId(PreviewId);
            if (entity != null) {
                ChapterId = entity.ChapterId.Value;
            }

        }

        public override WebModel.Other.AccountMenuType MenuType {
            get { return WebModel.Other.AccountMenuType.Preview; }
        }
    }
}